package javaclass;

import Dao.Caculator;
import org.springframework.stereotype.Service;

@Service
public class MyCaculator implements Caculator {

    @Override
    public int add(int a, int b) {

        int result = a+b;

        return result;
    }

    @Override
    public int sub(int a, int b) {
        int result = a-b;

        return result;
    }

    @Override
    public int mul(int a, int b) {
        int result = a*b;

        return result;
    }

    @Override
    public int div(int a, int b) {
        int result = a/b;

        return result;
    }
}
